package wnhz.com.business.uitls.decoration;

import android.graphics.Rect;
import android.support.v7.widget.RecyclerView;
import android.view.View;

/**
 * Created by wanghongchuang
 * on 2016/9/10.
 * email:844285775@qq.com
 */
public class HorizDecoration extends RecyclerView.ItemDecoration {
    private int pixels;

    public HorizDecoration(int pixels) {
        this.pixels = pixels;
    }

    @Override
    public void getItemOffsets(Rect outRect, View view,
                               RecyclerView parent, RecyclerView.State state) {
        outRect.bottom = pixels;
    }
}